<div class="divColorbox">
    <div class="divColorbox_Header">
        <span><i class="fa fa-star"></i><span>艺人罚分单据信息</span></span>
        <a class="Refresh"></a><a class="Close"></a>
    </div>
    <div class="divColorbox_Body row">
        <div class="row">
            <div class="col-sm-4">
                <div class="input-group">
                    <span class="input-group-addon">单据号</span>
                    <input id="Order_No" type="text" class="form-control" readonly/>
                </div>
            </div>
            <div class="col-sm-4">
                <div class="input-group">
                    <span class="input-group-addon">公会ID</span>
                    <input id="Family_ID" type="text" class="form-control" readonly/>
                </div>
            </div>
            <div class="col-sm-4">
                <div class="input-group">
                    <span class="input-group-addon">公会名称</span>
                    <input id="Family_Name" type="text" class="form-control" readonly/>
                </div>
            </div>
        </div>
        <div class="space-6"></div>
        <div class="row">
            <div class="col-sm-4">
                <div class="input-group">
                    <span class="input-group-addon">艺人ID</span>
                    <input id="User_ID" type="text" class="form-control" readonly/>
                    <span class="input-group-btn">
                        <a id="btnUserInfo" class="btn btn-default btn-sm" data-permission-code="{User}[Base](Info)" data-rel="tooltip" data-placement="left" data-original-title="查看用户">
                            <i class="fa fa-search"></i>
                        </a>
                    </span>
                    <!--<span id="OAuth_QQ_ID" class="input-group-addon hidden" data-rel="tooltip" data-placement="bottom" data-original-title="QQ登录已绑定">-->
                    <!--<i class="fa fa-qq text-primary"></i>-->
                    <!--</span>-->
                    <!--<span id="OAuth_Weixin_ID" class="input-group-addon hidden" data-rel="tooltip" data-placement="bottom" data-original-title="微信登录已绑定">-->
                    <!--<i class="fa fa-weixin text-success"></i>-->
                    <!--</span>-->
                    <!--<span id="OAuth_Weibo_ID" class="input-group-addon hidden" data-rel="tooltip" data-placement="bottom" data-original-title="微博登录已绑定">-->
                    <!--<i class="fa fa-weibo text-danger"></i>-->
                    <!--</span>-->
                    <!--<span class="input-group-btn">-->
                    <!--<a id="IsAnchor" class="btn btn-sm btn-success hidden" data-rel="tooltip" data-placement="bottom" data-original-title="艺人帐号">艺</a>-->
                    <!--<a id="IsFamily" class="btn btn-sm btn-info hidden" data-rel="tooltip" data-placement="bottom" data-original-title="公会帐号">家</a>-->
                    <!--<a id="IsAdmin" class="btn btn-sm btn-danger hidden" data-rel="tooltip" data-placement="bottom" data-original-title="管理员帐号">管</a>-->
                    <!--<a id="UserAvatar" target="_blank" class="btn btn-sm" data-rel="tooltip" data-placement="left" data-original-title="用户头像" data-trigger="hover">-->
                    <!--<i class="fa fa-picture-o"></i>-->
                    <!--</a>-->
                    <!--</span>-->
                </div>
            </div>
            <div class="col-sm-4">
                <div class="input-group">
                    <span class="input-group-addon">艺人昵称</span>
                    <input id="User_NickName" type="text" class="form-control" readonly/>
                </div>
            </div>
            <div class="col-sm-4">
                <div class="input-group">
                    <span class="input-group-addon">艺人姓名</span>
                    <input id="User_RealName" type="text" class="form-control" readonly/>
                </div>
            </div>
        </div>
        <div class="space-6"></div>
        <div class="row">
            <div class="col-sm-4">
                <div class="input-group">
                    <span class="input-group-addon">管理员ID</span>
                    <input id="User_ID_Admin" type="text" class="form-control" readonly/>
                    <span class="input-group-btn">
                        <a id="btnAdminInfo" class="btn btn-default btn-sm" data-permission-code="{User}[Base](Info)" data-rel="tooltip" data-placement="left" data-original-title="查看用户">
                            <i class="fa fa-search"></i>
                        </a>
                    </span>
                    <!--<span id="OAuth_QQ_ID_Admin" class="input-group-addon hidden" data-rel="tooltip" data-placement="bottom" data-original-title="QQ登录已绑定">-->
                    <!--<i class="fa fa-qq text-primary"></i>-->
                    <!--</span>-->
                    <!--<span id="OAuth_Weixin_ID_Admin" class="input-group-addon hidden" data-rel="tooltip" data-placement="bottom" data-original-title="微信登录已绑定">-->
                    <!--<i class="fa fa-weixin text-success"></i>-->
                    <!--</span>-->
                    <!--<span id="OAuth_Weibo_ID_Admin" class="input-group-addon hidden" data-rel="tooltip" data-placement="bottom" data-original-title="微博登录已绑定">-->
                    <!--<i class="fa fa-weibo text-danger"></i>-->
                    <!--</span>-->
                    <!--<span class="input-group-btn">-->
                    <!--<a id="IsAnchor_Admin" class="btn btn-sm btn-success hidden" data-rel="tooltip" data-placement="bottom" data-original-title="艺人帐号">艺</a>-->
                    <!--<a id="IsFamily_Admin" class="btn btn-sm btn-info hidden" data-rel="tooltip" data-placement="bottom" data-original-title="公会帐号">家</a>-->
                    <!--<a id="IsAdmin_Admin" class="btn btn-sm btn-danger hidden" data-rel="tooltip" data-placement="bottom" data-original-title="管理员帐号">管</a>-->
                    <!--<a id="UserAvatar_Admin" target="_blank" class="btn btn-sm" data-rel="tooltip" data-placement="left" data-original-title="用户头像" data-trigger="hover">-->
                    <!--<i class="fa fa-picture-o"></i>-->
                    <!--</a>-->
                    <!--</span>-->
                </div>
            </div>
            <div class="col-sm-4">
                <div class="input-group">
                    <span class="input-group-addon">管理员昵称</span>
                    <input id="User_NickName_Admin" type="text" class="form-control" readonly/>
                </div>
            </div>
            <div class="col-sm-4">
                <div class="input-group">
                    <span class="input-group-addon">管理员姓名</span>
                    <input id="User_RealName_Admin" type="text" class="form-control" readonly/>
                </div>
            </div>
        </div>
        <div class="space-6"></div>
        <div class="row">
            <div class="col-sm-4">
                <div class="input-group">
                    <span class="input-group-addon">类型</span>
                    <input id="Type" type="text" class="form-control" readonly/>
                </div>
            </div>
            <div class="col-sm-4">
                <div class="input-group">
                    <span class="input-group-addon">操作类型</span>
                    <input id="Operation" type="text" class="form-control" data-rel="tooltip" readonly/>
                </div>
            </div>
            <div class="col-sm-4">
                <div class="input-group">
                    <span class="input-group-addon">通知类型</span>
                    <input id="Inform" type="text" class="form-control" data-rel="tooltip" readonly/>
                </div>
            </div>
        </div>
        <div class="space-6"></div>
        <div class="row">
            <div class="col-sm-4">
                <div class="input-group">
                    <span class="input-group-addon">分数</span>
                    <input id="Integral" type="text" class="form-control" readonly/>
                </div>
            </div>
            <div class="col-sm-4">
                <div class="input-group">
                    <span class="input-group-addon">创建时间</span>
                    <input id="Create_Date" type="text" class="form-control" readonly/>
                </div>
            </div>
            <div class="col-sm-4">
                <div class="input-group">
                    <span class="input-group-addon">创建IP</span>
                    <input id="Create_IP" type="text" class="form-control" readonly/>
                </div>
            </div>
        </div>
        <div class="space-6"></div>
        <div class="row">
            <div class="col-sm-12">
                <div class="input-group">
                    <span class="input-group-addon">说明</span>
                    <input id="Remark" type="text" class="form-control" readonly/>
                </div>
            </div>
        </div>
    </div>
    <div class="divColorbox_Footer">
        <button type="button" id="btnUndo"></button>
    </div>
</div>
<script src="<%- Virtual_Path.Static %>jquery.plugin/dataTables/jquery.dataTables.min.js"></script>
<script src="<%- Virtual_Path.Static %>jquery.plugin/dataTables/jquery.dataTables.bootstrap.min.js"></script>
<script>
    $(function () {
        //region 判断flag
        if (_PageData.flag !== 0) {
            $.KOC.Tips.Open('Error', _PageData.flag, {
                Timeout: 1000,
                onClose: function () {
                    parent.$.colorbox.close();
                }
            });
            return;
        }
        //endregion
        //region 页面数据绑定
        $('#Order_No').val(_PageData.Order_No);
        //region 艺人
        $('#User_ID').val(_PageData.Order_AnchorIntegral.User_ID);
        $('#User_NickName').val(_PageData.Order_AnchorIntegral.User_NickName);
        $('#User_RealName').val(_PageData.Order_AnchorIntegral.User_RealName);
        //endregion
        //region 管理员
        $('#User_ID_Admin').val(_PageData.Order_AnchorIntegral.User_ID);
        $('#User_NickName_Admin').val(_PageData.Order_AnchorIntegral.User_NickName_Admin);
        $('#User_RealName_Admin').val(_PageData.Order_AnchorIntegral.User_RealName_Admin);
        //endregion
        $('#Family_ID').val(_PageData.Order_AnchorIntegral.Family_ID != -1 ? _PageData.Order_AnchorIntegral.Family_ID : '');
        $('#Family_Name').val(_PageData.Order_AnchorIntegral.Family_Name);
        $('#Integral').val(_PageData.Order_AnchorIntegral.Integral);
        $('#Type').val(_PageData.Order_AnchorIntegral.Type);
        switch (_PageData.Order_AnchorIntegral.Operation) {
            case 0:
                $('#Operation').val('警告');
                break;
            case 1:
                $('#Operation').val('结束直播');
                break;
            case 2:
                $('#Operation').val('冻结房间');
                break;
            default:
                $('#Operation').val('');
                break;
        }
//        $('#Operation').val(_PageData.Order_AnchorIntegral.Operation);
        switch (_PageData.Order_AnchorIntegral.Inform) {
            case 1:
                $('#Inform').val('通知艺人自己');
                break;
            case 2:
                $('#Inform').val('通知房间内所有用户');
                break;
            case 3:
                $('#Inform').val('通知全服');
                break;
            default:
                $('#Inform').val('默认不通知');
                    break;
        }
        $('#Remark').val(_PageData.Order_AnchorIntegral.Remark);
        $('#Create_Date').val(moment(_PageData.Order_AnchorIntegral.Create_Date).format('YYYY/MM/DD HH:mm:ss'));
        $('#Create_IP').val(_PageData.Order_AnchorIntegral.Create_IP);
        //endregion
        if (_PageData.Order_AnchorIntegral.User_ID) {
            $('#btnUserInfo').click(function () {
                $.CommonAdmin.OpenWindow(':UserInfo:' + _PageData.Order_AnchorIntegral.User_ID);
            });
        } else {
            $('#btnUserInfo').remove();
        }
        if (_PageData.Order_AnchorIntegral.User_ID_Admin) {
            $('#btnAdminInfo').click(function () {
                $.CommonAdmin.OpenWindow(':UserInfo:' + _PageData.Order_AnchorIntegral.User_ID_Admin);
            });
        } else {
            $('#btnAnchorInfo').remove();
        }
    });
</script>